//
//  FlipsideViewController.h
//  Mayhem
//
//  Created by Jay Meistrich on 6/20/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ZXingWidgetController.h"

@protocol FlipsideViewControllerDelegate;

@interface FlipsideViewController : UIViewController<ZXingDelegate> {
    UISegmentedControl *segmentedControl;
    UILabel *labelIP;
    UILabel *labelDescription;
    UILabel *labelPort;
    UITextField *textFieldIP;
    UITextField *textFieldPort;
    UIButton *buttonScan;
    
    BOOL hasCamera;
}

@property (nonatomic,retain) IBOutlet UISegmentedControl *segmentedControl;
@property (nonatomic, retain) IBOutlet UITextField *textFieldIP;
@property (nonatomic, retain) IBOutlet UITextField *textFieldPort;
@property (nonatomic, retain) IBOutlet UILabel *labelIP;
@property (nonatomic, retain) IBOutlet UILabel *labelPort;
@property (nonatomic, retain) IBOutlet UILabel *labelDescription;
@property (nonatomic, retain) IBOutlet UIButton *buttonScan;

-(IBAction) segmentedControlIndexChanged;


//@property (nonatomic, retain) IBOutlet UITextView *resultsView;
//@property (nonatomic, copy) NSString *resultsToDisplay;

- (IBAction)scanPressed:(id)sender;

@property (nonatomic, assign) id <FlipsideViewControllerDelegate> delegate;

- (IBAction)done:(id)sender;

@end


@protocol FlipsideViewControllerDelegate
- (void)flipsideViewControllerDidFinish:(FlipsideViewController *)controller;
@end
